<?php
//配合jsonp.html
$arr=array(
    array("id"=>1,"user"=>"张三","able"=>"人才"),
    array("id"=>2,"user"=>"李四","able"=>"天才"),
    array("id"=>3,"user"=>"王五","able"=>"鬼才")
);
$re=json_encode($arr);
$callback=$_GET['callback'];//回调函数名（juqery自动生成）
echo $callback."($re)";  

//直接获取json
/*$.getJSON('test.json', function(data){
	for (var i = 0; i < data.rows.length; i++) {
		$('#test').append('<p>' + data.rows[i].realName + '</p>');
	}
});*/